package com.healthcare.client;

import com.healthcare.client.utils.ApplicationContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 作者：LSH
 * 日期：2020/4/13 13:44
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.healthcare.client","com.healthcare.common"})
@EnableTransactionManagement
public class ClientApplication {
    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(ClientApplication.class, args);
        ApplicationContextUtil.setApplicationContext(app);
    }
}
